<?php
namespace Api\Controller;
use Think\Controller;
class IndexController extends Controller {
    //调用支付宝支付
    public function index(){
        import("Library.Alipay.pagepay.service.AlipayTradeService");
//        $a=new \Alipay\pagepay\buildermodel\AlipayTradePagePayContentBuilder();
//        $order=mt_rand(10000,99999).time();
//        $sum='998';
//        $_SESSION['order']=$order;
//        $_SESSION['sum']=$sum;
//        redirect(__ROOT__."/library/ThinkPHP/Library/Vendor/Alipay/index.php");
//        redirect(__ROOT__."/library/ThinkPHP/Library/Alipay/AopSdk.php");

//        $this->redirect('Repay/pay');
        import("Library.Alipay.config.php");

    }
}